(function() {
	window._alg={
			centuryTick:function(targetTime){
				//var year100=new Date("2119-04-04 00:00:00");
				var tgt_year=targetTime.getFullYear();
				var tgt_month=targetTime.getMonth()+1;
				var tgt_day=targetTime.getDate();
				
				var now = new Date();
				var year=tgt_year-now.getFullYear();
				var month=tgt_month-(now.getMonth()+1);
				var day=tgt_day-now.getDate();
				if(month<0|day<0){
					year-=1;
				}
				if(month<0){
					month=12+month;
				}
				if(day<0){
					month-=1;
					day+=30;
				}
				
				var hour=23-now.getHours();
				var min=59-now.getMinutes();
				var sec=60-now.getSeconds();
				return year+"年"+month+"月"+day+"日"+hour+"时"+min+"分"+sec+"秒";
			}
			
	}
}.call(this));


if ( typeof define === "function") {
	define( "_alg", [], function () { return _alg; } );
}

